{include file="public/header" /}  
        <!-- Start right content -->
        <div class="content-page">
            <!-- ============================================================== -->
            <!-- Start Content here -->
            <!-- ============================================================== -->
            <div class="content">
                                <!-- Page Heading Start -->
                <div class="page-heading">
                    <h1>管理员编辑</h1>
                                    </div>
                <!-- Page Heading End-->
                <div class="row">
                    <div class="col-sm-12 portlets">
                        <div class="widget">
                            <div class="widget-header transparent">
                                <h2><strong>管理员</strong> 编辑</h2>
                                <div class="additional-btn">
                                    <a href="#" class="hidden reload"><i class="icon-ccw-1"></i></a>
                                    <a href="#" class="widget-toggle"><i class="icon-down-open-2"></i></a>
                                    <a href="#" class="widget-close"><i class="icon-cancel-3"></i></a>
                                </div>
                            </div>
                            <div class="col-sm-8 portlets">
                                <div class="widget-content padding">
                                    <form role="form" id="ExpressionValidator" action="{:url('admin/admin/doEdit',['id'=>$admin['id']])}" method="post">
                                      <div class="form-group">
                                        <label>管理员名称</label>
                                        <input type="text" class="form-control" name="name" value="{$admin['name']}">
                                      </div>
                                      <div class="form-group">
                                        <label>管理员密码</label>
                                        <input type="password" class="form-control" name="pass" value="{$admin['pass']}">
                                      </div>
                                      <div class="form-group">
                                        <label>所有角色</label>
                                        <div class="col-sm-12">
                                            {volist name="roles" key="k" id="v"}
                                                <label><input type="checkbox" class="rows-check" name="box[]" value="{$v['id']}" {if condition="in_array($v['id'],$list)"}checked{/if} >{$v['name']}</label> 
                                            {/volist}
                                        </div>
                                      </div>
                                      <div class="form-group">
                                        <label>状态</label>
                                        <div class="col-sm-12">
                                        {if condition="$admin['status'] == 1"}
                                            <input type="radio" class="form-control" name="status" value="1" checked>启用
                                            <input type="radio" class="form-control" name="status" value="0" >禁用
                                        {else/}
                                            <input type="radio" class="form-control" name="status" value="1">启用
                                            <input type="radio" class="form-control" name="status" value="0" checked>禁用
                                        {/if}
                                        </div>
                                      </div>
                                      <br>
                                      <button type="submit" class="btn btn-primary">提交</button>
                                    </form>
                                </div>
                                
                            </div>

                        </div>
                        
                    </div>
                    
                </div>
                
                            <!-- Footer Start -->
{include file="public/footer" /}
